<?php

  $docstring = "<?xml version='1.0' ?>
  <island>
    <empty/>
  </island>";

  $doc = new DOMDocument;
  $doc->loadXML($docstring);
  $tpl = new DOMDocument;
  $tpl->load("view-xopus-island.xsl");
  $xsltproc = new XSLTProcessor;
  $xsltproc->importStylesheet($tpl);
  echo $xsltproc->transformToXML($doc);

